package com.nsy.dao;

import com.nsy.pojo.Member;
import com.nsy.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberMapper {
    /**
     * 查询会员信息
     * @param member
     * @return
     */
    Member getMemberByNicknameAndPwd(Member member);
    //会员列表
    List<Member> getAllMembers(@Param("nickname") String nickname);
    //根据id查询所有会员
    Member getMemberById(@Param("id") Integer id);
    //添加会员
    int addMember(Member member);
    //删除会员
    int deleteMember(@Param("id") Integer id);
    //修改会员
    int editMember(Member member);
    //批量删除
    int deleteAllMember(@Param("ids") List<String> ids);
    //根据用户名查询
    Member getMemberByNickname(String nickname);
    //详情
    Member detailMember(Integer id);
}
